Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout handling #22

Closed
wants to merge 2 commits into from
Closed

Timeout handling #22

wants to merge 2 commits into from

Conversation

ksol
Copy link
Contributor

@ksol ksol commented Jun 25, 2020

Fix #21

Changes an internal API, unpack. The response is now supplied as the return value of a block in order to catch exceptions. Current use case is handling timeout responses.

First commits switches to the new version of unpack, second leverages it to handle timeouts.

@ksol ksol requested a review from johnsudaar June 25, 2020 09:02
def self.timeout(client)
new(
client: client,
status: nil,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add another status for timeout ? There might be other reason for an empty status (DNS resolution failed, connection reset, etc...)

@ksol
Copy link
Contributor Author

ksol commented Aug 15, 2020

Closing for now. Not sure this is the right way to do it.

@ksol ksol closed this Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timeouts are not handled
2 participants